home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2001 May
/
SGI Freeware 2001 May - Disc 2.iso
/
dist
/
fw_gftp.idb
/
usr
/
freeware
/
src
/
gftp
/
patches.z
/
patches
Wrap
Text File
|
2000-01-25
|
4KB
|
131 lines
--- ./file_transfer.c Sun Sep 26 19:03:46 1999
+++ ../gftp-2.0.5a/./file_transfer.c Mon Nov 8 11:33:44 1999
@@ -323,7 +323,7 @@
}
/*****************************************************************************/
static void asktrans (struct ftp_transfer_data *tdata) {
- char *dltitles[4] = {_("Filename"), _("Local Size"), _("Remote Size"), _("Action")};
+ char *dltitles[4];
char *add_data[4] = {NULL, NULL, NULL, NULL};
GtkWidget *tempwid, *scroll, *hbox;
struct ftp_file_data *tempfle;
@@ -330,6 +330,11 @@
char tempstr[20], *pos;
size_t len;
int i;
+
+ dltitles[0] = _("Filename");
+ dltitles[1] = _("Local Size");
+ dltitles[2] = _("Remote Size");
+ dltitles[3] = _("Action");
dialog = gtk_dialog_new ();
gtk_grab_add (dialog);
--- ./gftp.c Wed Sep 29 16:24:50 1999
+++ ../gftp-2.0.5a/./gftp.c Mon Nov 8 14:25:25 1999
@@ -225,7 +225,7 @@
GtkWidget *box, *dlbox, *winpane, *dlpane, *logpane, *vscrollbar, *mainvbox,
*tempwid, *button, *pix;
GtkAccelGroup *accel_group;
- char *dltitles[3] = {_("Filename"), _("Progress"), _("Hostname")};
+ char *dltitles[3];
const GtkTargetEntry possible_types[] = {
{"STRING", 0, 0},
{"text/plain", 0, 0},
@@ -301,6 +301,10 @@
{N_("/Help/tearoff"), NULL, 0, 0, "<Tearoff>"},
{N_("/Help/About..."), NULL, about_dialog, 0}};
+ dltitles[0] = _("Filename");
+ dltitles[1] = _("Progress");
+ dltitles[2] = _("Hostname");
+
mainvbox = gtk_vbox_new (FALSE, 0);
gtk_widget_show (mainvbox);
@@ -535,12 +539,20 @@
}
/*****************************************************************************/
static GtkWidget *CreateFTPWindow (struct ftp_window_data *wdata) {
- char *titles[7] = {"", _("Filename"), _("Size"), _("User"), _("Group"), _("Date"), _("Attribs")};
+ char *titles[7];
const GtkTargetEntry possible_types[] = {
{"STRING", 0, 0},
{"text/plain", 0, 0},
{"application/x-rootwin-drop", 0, 1}};
GtkWidget *box, *scroll_list, *parent;
+
+ titles[0] = "";
+ titles[1] = _("Filename");
+ titles[2] = _("Size");
+ titles[3] = _("User");
+ titles[4] = _("Group");
+ titles[5] = _("Date");
+ titles[6] = _("Attribs");
wdata->filespec = g_malloc (2);
strcpy (wdata->filespec, "*");
--- ./ftp.h Wed Sep 29 16:14:58 1999
+++ ../gftp-2.0.5a/./ftp.h Mon Nov 8 11:45:34 1999
@@ -291,7 +291,7 @@
extern GtkWidget *logwdw, *dlwdw, *local_frame, *remote_frame, *log_table,
*transfer_scroll, *firewall_btn, *openurl_btn, *stop_btn, *hostedit,
*useredit, *passedit, *portedit;
-struct ftp_window_data window1, window2;
+extern struct ftp_window_data window1, window2;
extern char *emailaddr, *edit_program, *view_program,
*firewall_host, *firewall_username, *firewall_password,
--- ./options.h Thu Sep 23 01:08:03 1999
+++ ../gftp-2.0.5a/./options.h Mon Nov 8 11:57:23 1999
@@ -106,4 +106,5 @@
*firewall_account, /* Firewall account (optional) */
*proxy_config; /* The way to log into the proxy server */
int firewall_port = 21; /* What port to connect to? */
-float maxkbs = 0; /* The max KB/s a file transfer can get */
+float maxkbs = 0; /* The max KB/s a file transfer can get */
+
--- ./rfc959.h Thu Sep 23 13:41:18 1999
+++ ../gftp-2.0.5a/./rfc959.h Mon Nov 8 11:38:49 1999
@@ -24,8 +24,8 @@
#include <glib.h>
#include <netdb.h>
#include <netinet/in.h>
-#include <sys/socket.h>
#include <sys/types.h>
+#include <sys/socket.h>
#include <sys/time.h>
#include <stdlib.h>
#include <errno.h>
--- ./misc.c Sat Sep 25 20:14:28 1999
+++ ../gftp-2.0.5a/./misc.c Mon Nov 8 14:35:39 1999
@@ -74,6 +74,7 @@
struct ftp_file_data *files;
char curdir[MAXSTR];
FILE *dir;
+ SIG_PF handler;
*total = 0;
if (path != NULL) {
@@ -80,9 +81,20 @@
if (getcwd (curdir, sizeof (curdir)) == NULL) return (NULL);
if (chdir(path) == -1) return (NULL);
}
+
+#ifdef __sgi
+ handler = signal(SIGCHLD, SIG_IGN);
+#endif
+
dir = popen ("/bin/ls -al", "r");
files = parse_local_file (dir, 1, total, ftp);
pclose (dir);
+
+#ifdef __sgi
+ signal(SIGCHLD, handler);
+ if (handler > SIG_IGN) handler(SIGCHLD);
+#endif
+
if (path != NULL) chdir (curdir);
return (files);
}